package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.dto.BaseArticleGroupDTO;
import com.yuanfeng.base.entity.BaseArticleGroupEntity;
import com.yuanfeng.base.vo.index.WebIndexArticleGroupVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BaseArticleGroupMapper
 * @Description  网站初始化内容分组表
 * @Author cyp
 * @Date 2023-05-22 18:54:37
 * @Version 1.0
 **/
@Mapper
public interface BaseArticleGroupMapper extends BaseMapper<BaseArticleGroupEntity> {


  List<WebIndexArticleGroupVO> selectAllGroup();

  WebIndexArticleGroupVO selectByArticleGroupId(@Param("articleGroupId")Integer articleGroupId);


    /**
     * 新增文章分组
     *
     * @param baseArticleGroupReq
     */
    void insertArticleGroup(@Param("param") BaseArticleGroupDTO baseArticleGroupReq);
 }

